<template>
	<div>
		<img class="start-page" src="../assets/start-page.jpg"  />
		<!-- <h2>APP启动页</h2> -->
	</div>
</template>

<script>
	import {
		// Toast
	} from 'vant';
	export default {
		data() {
			return {
				countdown:2,
			}
		},
		mounted(){
			this.toIndex();
			
		},
		methods: {
			toIndex(){
				console.log("toIndex");
				let interval = setInterval(() => {
					// this.readonly = true;
					console.log(this.countdown);
					this.countdown--;
					if (this.countdown === 0) {
						this.countdown = "重新发送"
						this.disabled = false;
						this.judge = true
						console.log(this.countdown);
						this.$router.replace('/homepage')
						clearInterval(interval);
					}
				}, 1000)
			}
			
		}
	}
</script>

<style scoped>
	.start-page{
		width: 100%;
	}
</style>
